package zhieasy.cn.model.forum;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import zhieasy.cn.model.common.WechatUser;

import java.util.List;

@Data
@TableName("forum_info")
public class ForumInfo {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("自增主键")
    private int id;

    @ApiModelProperty("类型")
    private String type;

    @ApiModelProperty("内容")
    private String context;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("发这个的openId")
    private String openId;

    @ApiModelProperty("是否有效，0，1")
    private long valid;

    @ApiModelProperty("发帖地址")
    private String address;

    @ApiModelProperty("点赞数")
    private long likes;

    @ApiModelProperty("点击数")
    private long clicks;

    @ApiModelProperty("转发数")
    private long forward;

    @ApiModelProperty("图片url")
    private String imageUrls;

    @ApiModelProperty("创建时间")
    private long createTime;

    @ApiModelProperty("修改时间")
    private long updateTime;

    @ApiModelProperty("是否点赞了这个帖子")
    @TableField(exist = false)
    private boolean isLike;

    @ApiModelProperty("发表这个帖子的用户信息")
    @TableField(exist = false)
    private WechatUser wechatUser;

    @ApiModelProperty("这个帖子中的评论")
    @TableField(exist = false)
    private List<ForumCommentRoot> forumCommentRootList;

}
